package com.hsshy.beam.sharding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

@Data
@NoArgsConstructor
@TableName("t_order")
public  class Order extends Model {

    @TableId(type = IdType.ID_WORKER)
    private Long orderId;
    
    private int userId;
    
    private String status;

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }
    
}
